package com.feifei.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Product {

    private Integer id;

    private Integer userId;

    private String serviceName;

    private String servicePhone;

    private Integer typeId;

    private String title;

    private String imageUrl;

    private String goal;

    private Integer cityId;

    private Integer money;

    private Integer days;

    private String video;

    private String story;

    private String providereturns;

    private String aboutme;

    private Integer status;

    private Date startTime;

    private Date endTime;

    private Double getmoney;

    private Integer getpeople;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName == null ? null : serviceName.trim();
    }

    public String getServicePhone() {
        return servicePhone;
    }

    public void setServicePhone(String servicePhone) {
        this.servicePhone = servicePhone == null ? null : servicePhone.trim();
    }


    public Integer getTypeId() {
        return typeId;
    }


    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl == null ? null : imageUrl.trim();
    }

    public String getGoal() {
        return goal;
    }

    public void setGoal(String goal) {
        this.goal = goal == null ? null : goal.trim();
    }


    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video == null ? null : video.trim();
    }

    public String getStory() {
        return story;
    }

    public void setStory(String story) {
        this.story = story == null ? null : story.trim();
    }

    public String getProvidereturns() {
        return providereturns;
    }

    public void setProvidereturns(String providereturns) {
        this.providereturns = providereturns == null ? null : providereturns.trim();
    }

    public String getAboutme() {
        return aboutme;
    }

    public void setAboutme(String aboutme) {
        this.aboutme = aboutme == null ? null : aboutme.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public Date getStartTime() {
        return startTime;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Double getGetmoney() {
        return getmoney;
    }

    public void setGetmoney(Double getmoney) {
        this.getmoney = getmoney;
    }

    public Integer getGetpeople() {
        return getpeople;
    }

    public void setGetpeople(Integer getpeople) {
        this.getpeople = getpeople;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", userId=" + userId +
                ", serviceName='" + serviceName + '\'' +
                ", servicePhone='" + servicePhone + '\'' +
                ", typeId=" + typeId +
                ", title='" + title + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", goal='" + goal + '\'' +
                ", cityId=" + cityId +
                ", money=" + money +
                ", days=" + days +
                ", video='" + video + '\'' +
                ", story='" + story + '\'' +
                ", providereturns='" + providereturns + '\'' +
                ", aboutme='" + aboutme + '\'' +
                ", status=" + status +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", getmoney=" + getmoney +
                ", getpeople=" + getpeople +
                '}';
    }
}